export const count = {
    state: {
        count: 0,
        test: 'test',
    },
    reducer: {
        increment: ({state}) => ({
            ...state,
            count: state.count + 1,
        }),
        decrement: ({state}) => ({
            ...state,
            count: state.count - 1,
        }),
        reset: ({state, action}) => {
            state.count = 0;
        },
        set: ({state, payload: { count }}) => {
            state.count = count;
        }
    }
}
